home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / c++ / complex.z / complex
Encoding:
Text File  |  2002-10-03  |  3.4 KB  |  61 lines

  1. COMPLEX(3C)                                           Last changed: 3-22-99
  2.  
  3.  
  4. NNAAMMEE
  5.      ccoommpplleexx - Introduction to C++ complex mathematics library
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ccoommpplleexx..hh>>
  9.      ccllaassss ccoommpplleexx;;
  10.  
  11. IIMMPPLLEEMMEENNTTAATTIIOONN
  12.      IRIX systems (--oo3322 ABI only)
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.           NOTE: This man page applies only to the --oo3322 ABI.  The MIPSpro
  16.           --nn3322 and --6644 ABIs support the template-based complex class which
  17.           is included in the C++ standard library and is automatically
  18.           loaded by the MIPSpro C++ compiler.  The --llmm option must still be
  19.           used to link the math library.
  20.  
  21.      This section describes functions and operators found in the C++
  22.      Complex Mathematics Library, lliibbccoommpplleexx..aa.  These functions are not
  23.      automatically loaded by the C++ compiler, CCCC(1); however, the link
  24.      editor searches this library under the --llccoommpplleexx option.  Declarations
  25.      for these functions may be found in the <<ccoommpplleexx..hh>> ##iinncclluuddee file.
  26.      When compiling programs using the complex library, users must provide
  27.      the --llmm options on the CCCC command line to link the math library.
  28.  
  29.      The Complex Mathematics library implements the data type of complex
  30.      numbers as a class, ccoommpplleexx.  It overloads the standard input, output,
  31.      arithmetic, assignment, and comparison operators, discussed in the
  32.      manual pages for ccppllxxooppss(3C).  It also overloads the standard
  33.      exponential, logarithm, power, and square root functions, discussed in
  34.      ccppllxxeexxpp(3C), and the trigonometric functions of sine, cosine,
  35.      hyperbolic sine, and hyperbolic cosine, discussed in ccppllxxttrriigg(3C), for
  36.      the class ccoommpplleexx.  Routines for converting between Cartesian and
  37.      polar coordinate systems are discussed in ccaarrttppooll(3C).  Error handling
  38.      is described in ccppllxxeerrrr(3C).
  39.  
  40. DDIIAAGGNNOOSSTTIICCSS
  41.      Functions in the Complex Mathematics Library may return the
  42.      conventional values ((00,, 00)), ((00,, +__+HHUUGGEE)), ((+__+HHUUGGEE,, 00)),, or ((+__+HHUUGGEE,, +__+HHUUGGEE)),
  43.      when the function is undefined for the given arguments or when the
  44.      value is not representable.  ((HHUUGGEE is the largest-magnitude single-
  45.      precision floating-point number and is defined in the file <<mmaatthh..hh>>.
  46.      The header file <<mmaatthh..hh>> is included in the file <<ccoommpplleexx..hh>>.)  In
  47.      these cases, the external variable eerrrrnnoo [see iinnttrroo(2)] is set to the
  48.      value EEDDOOMM or EERRAANNGGEE.
  49.  
  50. FFIILLEESS
  51.      IINNCCDDIIRR//ccoommpplleexx..hh
  52.      LLIIBBDDIIRR//lliibbccoommpplleexx..aa
  53.  
  54. SSEEEE AALLSSOO
  55.      ccaarrttppooll(3C), ccppllxxeerrrr(3C), ccppllxxooppss(3C), ccppllxxeexxpp(3C), ccppllxxttrriigg(3C)
  56.  
  57.      Stroustrup, B., ``Complex Arithmetic in C++,'' Chapter 1 of the _C++
  58.      _L_a_n_g_u_a_g_e _S_y_s_t_e_m _R_e_l_e_a_s_e _2._1 _L_i_b_r_a_r_y _M_a_n_u_a_l
  59.  
  60.      This man page is available only online.
  61.